<template>
<!-- 导航栏 -->
  <nav-bar class="profileNav">
    <div slot="center" class="profileLogo">
      <img id="fishLogo" src="~assets/img/logo/fishLogo.png" alt="游出我的范">
      <span class="mine">消息</span>
    </div>
    <div slot="right" class="contact" @click="addFriends">
      <img class="contactImg" src="~assets/img/message/addFriends.svg">
      <span class="contactText">添加好友</span>
    </div>
  </nav-bar>
</template>

<script>
  import NavBar from "components/common/navbar/NavBar";

  export default {
    name: "Message_Nav",
    components:{
      NavBar,
    },
    methods: {
      addFriends() {
        this.$router.push('/addfriends')
      }
    },
  }
</script>

<style scoped>
/* 初始化样式 */
* {
  padding: 0;
  margin: 0;
}
  .profileNav{
    background-color: #11dff1;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
  }
  .profileLogo{
    height: 44px;
    display: flex;
    justify-content: center;
  }
  .mine{
    font-size: 18px;
    color: #fff;
    margin: 2px 0 0 5px;
  }
  #fishLogo{
    height: 80%;
    margin-top: 4px;
  }
  /* 设置联系客服插槽样式 */
  .contact {
    height: 100%;
    width: 100%;
  }
  /* 设置联系客服图片样式 */
  .contactImg {
    position: relative;
    top: 0;
    margin: 0;
    height: 50%;
    width: 70%;
    z-index: 99;
  }
  /* 设置联系客服文字样式 */
  .contactText {
    display: block;
    position: relative;
    top: -50%;
    margin: 0;
    bottom: 0;
    transform: translate(0,-50%);
    height: 30%;
    font-size: 1%;
  }

</style>
